package com.kpmg.datalake.accountcheck.vo;

import java.io.Serializable;
import java.util.List;

import com.kpmg.datalake.accountcheck.service.impl.AccountCheckServiceImpl;

public class AccountCheckComboVO implements Serializable {
	private static final long serialVersionUID = -2131249963111939615L;
	// 流水号
    private String flowNo;
    // 记账总金额
    private String bookTotal;
    // 差异总金额
    private String diffTotal;
    // 差异金额
    private String offsetTotal;
	//差额公司名称
	private String totalCorpNm;

	//差额交易对手名称
	private String totalCstNm;

	//差额公司名称code
	private String totalCorpCode;

	public void setTotalCorpCode(String totalCorpCode) {
		this.totalCorpCode = totalCorpCode;
	}

	public void setTotalCstCode(String totalCstCode) {
		this.totalCstCode = totalCstCode;
	}

	public String getTotalCorpCode() {
		return totalCorpCode;
	}

	public String getTotalCstCode() {
		return totalCstCode;
	}

	//差额交易对手名称code
	private String totalCstCode;
    //是否显示差额行
	private boolean displayTotal;
    // 该内部对账分录包含的账目数目
    private int accountSize;
    // 备注
    private String remark;
    // 分录的批次Id
    private String batchId;
    // 分录的抵消类型
    private String type;
    // 分录抵消类型对应的名称
    private String typeName;
    // 是否需要手动添加
    private boolean manualOper;
    // 本方公司列表
    private List<AccountCheckRowVO> hostList;
    // 交易对手列表
    private List<AccountCheckRowVO> tradeList;
	
	public String getBookTotal() {
		return bookTotal;
	}

	public String getFlowNo() {
		return flowNo;
	}

	public void setFlowNo(String flowNo) {
		this.flowNo = flowNo;
	}

	public String getTotalCorpNm() {
		return totalCorpNm;
	}

	public void setTotalCorpNm(String totalCorpNm) {
		this.totalCorpNm = totalCorpNm;
	}

	public String getTotalCstNm() {
		return totalCstNm;
	}

	public void setTotalCstNm(String totalCstNm) {
		this.totalCstNm = totalCstNm;
	}

	public boolean isDisplayTotal() {
		return displayTotal;
	}

	public void setDisplayTotal(boolean displayTotal) {
		this.displayTotal = displayTotal;
	}

	public void setDiffTotal(String diffTotal) {
		this.diffTotal = diffTotal;
	}
	public String getOffsetTotal() {
		return offsetTotal;
	}
	public void setOffsetTotal(String offsetTotal) {
		this.offsetTotal = offsetTotal;
	}
	public int getAccountSize() {
		return accountSize;
	}
	public void setAccountSize(int accountSize) {
		this.accountSize = accountSize;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getBatchId() {
		return batchId;
	}
	public void setBatchId(String batchId) {
		this.batchId = batchId;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getTypeName() {
		if(this.typeName == null) {
			String temp = "";
			if(AccountCheckServiceImpl.MATCH_AUTO_EQUAL.equals(this.type)) {
				temp = "自动-相等抵消";
			} else if(AccountCheckServiceImpl.MATCH_MANUAL_EQUAL.equals(this.type)) {
				temp = "手工-相等抵消";
			} else if(AccountCheckServiceImpl.MATCH_MANUAL_OFFSET.equals(this.type)) {
				temp = "手工-抵小抵消";
			} else if(AccountCheckServiceImpl.MATCH_AUTO_OFFSET.equals(this.type)) {
				temp = "自动-抵小抵消";
			} else if(AccountCheckServiceImpl.MATCH_UNILATERAL_ACCOUNT.equals(this.type)) {
				temp = "自动-单边记账";
			} else if(AccountCheckServiceImpl.MATCH_SUBJECT_UNDEFINED.equals(this.type)) {
				temp = "科目未配置";
			}
			return temp;
		} else {
			return typeName;
		}
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public boolean isManualOper() {
		return manualOper;
	}
	public void setManualOper(boolean manualOper) {
		this.manualOper = manualOper;
	}
	public List<AccountCheckRowVO> getHostList() {
		return hostList;
	}
	public void setHostList(List<AccountCheckRowVO> hostList) {
		this.hostList = hostList;
	}
	public List<AccountCheckRowVO> getTradeList() {
		return tradeList;
	}
	public void setTradeList(List<AccountCheckRowVO> tradeList) {
		this.tradeList = tradeList;
	}
	public void setBookTotal(String bookTotal) {
		this.bookTotal = bookTotal;
	}
	public String getDiffTotal() {
		return diffTotal;
	}
}
